'use strict';
var Model = require('../../../Base/server/controllers/Model');

var modelField = {};
modelField.Code = {
    type: String,
    Name: '编码',
    default: '',
    trim: true,
    IsEmpty: false
};
modelField.Name = {
    type: String,
    trim: true
};
modelField.Org = {
    type: String,
    trim: true
};
modelField.OrgCode = {
    type: String,
    trim: true
};
modelField.OrgName = {
    type: String,
    trim: true
};
modelField.Department = {
    type: String,
    trim: true
};
modelField.DepartmentCode = {
    type: String,
    trim: true
};
modelField.DepartmentName = {
    type: String,
    trim: true
};
modelField.IsEffevtive = {
    type: Boolean,
    default: true
};
modelField.Dsc = {
    type: String,
    default: ''
};
modelField.ErpID = {
    type: String,
    Name: 'ErpID',
    IsUnique: true,
    IsEmpty: false
};

var newModel = new Model(modelField);
newModel.create('StorageLocation', '存储地点');